/**************************************
 *
 * VLOOK™ 模板主题
 *
 * powered by MAX°孟兆
 *
 * QQ Group: 805502564
 * Telegram Channel: t.me/vlook_markdown
 * email: maxchow@qq.com
 *
 * For(QQ): 49668716
 * 2024-3
 * http://www.ouguang20.com
 *
 *************************************/

@import "../font";
@import "../color";
@import "../common";

// 主题配套预置选项 vlook-query
@vlookQuery: @vlookQueryDef + "toc=1&ws=auto&cf=off";

// 主题信息
@themeVer: "V28.1";
@themeName: "vlook-x-ouguan";
@themeDesc: "× OuGuan";
@themeEmail: "sumkiat@163.com";

// 指定字体主题
.applyFontStyle(local);
// 指定主题配套的圆角
.applyThemeRadius(none);
// 文档背景使用图片
.applyDocBgImg(@docBgImgLight_Twill, @docBgImgDark_Twill);
// 生成指定的表格样式
.genTableStyle(modern);

:root {
    --thm-fav-logo-lg: url("");
    --thm-fav-logo-dk: var(--thm-fav-logo-lg);
}

// 主题主色
@theme1: #01408C;
@theme2: #10C7BB;
@theme3: #FFFFFF;
@theme1Dark: #3087F2;
@theme1Alt: #B8CDE6;
@theme1AltDark: #0B3A73;
@theme2Dark: @theme2;
@theme2Alt: #D5F2F0;
@theme2AltDark: #064D48;
@theme1Fade: rgba(red(@theme1), green(@theme1), blue(@theme1), 15%);
@theme2Fade: rgba(red(@theme2), green(@theme2), blue(@theme2), @accOpacity);
@theme2FadeDark: rgba(red(@theme2Dark), green(@theme2Dark), blue(@theme2Dark), 30%);

@themeForeColor: @theme1;
@themeForeColorFade: fade(@themeForeColor, 50%);
@themeBgColor: @theme1;
@themeBgColorFade: fade(@themeBgColor, 50%);
@themeBgColorDark: darken(@themeBgColor, 15%);
@themeBgColorAlt: lighten(@themeBgColor, 45%);

// 标题色
@headerColor: @theme1;
@headerColorDark: @theme1Dark;

//@contentHeaderNumColor: @themeBgColorFade;
@headerBackground: linear-gradient(90deg, var(--h-bg-start), var(--h-bg-end));
@continuousHeaderBG: @headerBackground;
@headerTextAlign: left;
@headerPadding: 5px 10px;

// 不进行标题自动编号
@vHeaderAutoNum: "h1{{#none#}},h2{{#none#}},h3{{#none#}},h4{{#none#}},h5{{#none#}}";;
@h1BeforeContent: "";
@h2BeforeContent: "";
@h3BeforeContent: "";
@h4BeforeContent: "";
@h5BeforeContent: "";

@h1BorderLeft: 10px solid var(--h-box-shadow);
@h2BorderLeft: 10px solid var(--h-box-shadow);
@h3BorderLeft: 10px solid var(--h-box-shadow);
@h4BorderLeft: 10px solid var(--h-box-shadow);
@h5BorderLeft: 10px solid var(--h-box-shadow);
@h6BorderLeft: 0;
@h1BorderRight: 10px solid var(--h-box-shadow);
@h2BorderRight: 10px solid var(--h-box-shadow);
@h3BorderRight: 10px solid var(--h-box-shadow);
@h4BorderRight: 10px solid var(--h-box-shadow);
@h5BorderRight: 10px solid var(--h-box-shadow);
@h6BorderRight: 0;

@hGap: 5px;
@h1Margin: 3em 0 @hGap 0;
@h2Margin: 3em 0 @hGap 0;
@h3Margin: 2em 0 @hGap 0;
@h4Margin: 2em 0 @hGap 0;
@h5Margin: 1.25em 0 @hGap 0;
@h6Margin: 1em 0 0 0;
@hContinuous: -@hGap;

// 表格行 hover
// @tableTrHoverBgDark: fade(@aHoverColor, 25%);

// 题注文字、背景色
@captionTextColor: var(--d-fc-a);
@captionBackground: none;

// 行内代码
@codeTextColor: @theme2;

//@quoteBorderLeft: 0;

// 按钮色
@buttonForeColor: @theme3;
@buttonForeHoverColor: @theme3;
@buttonBgColor: @themeBgColor;
// 文库按钮颜色
@docLibButtonForeColor: @buttonForeColor;
@docLibButtonForeHoverColor: @buttonForeHoverColor;
@docLibButtonBgColor: @buttonBgColor;
// 指定 kbd 按钮风格
.applyKbdRadius(none);

// 链接颜色
@aBorderWidth: 2px;
@aColor: @headerColor;
@aColorDark: @headerColorDark;
// @alinecolor: @theme2;
@aHoverColor: @theme2;
@aHoverColorDark: @theme2Dark;
@aActiveColor: desaturate(@aHoverColor, 25%);

// 封面、封底文字位置及对齐方式
@coverTextAlign: center;
@coverTextPadding: 180px 60px 0;
@coverTextPaddingForMobile: 180px 20px 0;
@coverTextColor: @theme3;
@coverSubColor: @theme2;
@coverUnderlineColor: @theme2;
@coverAuthorColor: @coverTextColor;
@coverOwnerColor: @coverTextColor;

@backcoverTextAlign: left;
@backcoverTextPadding: 60px 60px 0;
@backcoverTextPaddingForMobile: 60px 20px 0;
@backcoverTextColor: @theme2;

// 对比度边框色，用于主题色与背景色对比度比较低时的边缘视觉识别
@contrastBorder: 0 0 0 0 transparent;
@contrastBorderForCover: @contrastBorder;

// 封面背景设置
@coverBackgroundColor: @themeBgColor;
@coverBackgroundImage: var(--thm-c-logo), var(--thm-c-bottom), var(--thm-c-bg);
@coverBgSize: 240px 40px, auto, auto;
@coverBgSizeForMobile: 240px 40px, 470px 340px, 490px 340px;
@coverBackgroundSize: var(--thm-c-bg-size);
@coverBackgroundRepeat: no-repeat, repeat-x, repeat-x;
@coverBgPosition: center 60px, bottom center, bottom center;
@coverBgPositionForMobile: @coverBgPosition;
@coverBackgroundPosition: var(--thm-c-bg-pos);

// 封底背景设置
@backcoverBackgroundColor: @coverBackgroundColor;
@backcoverBackgroundImage: var(--thm-c-logo), var(--thm-bc-map);
@backcoverBgSize: 240px 40px, 700px 324px;
@backcoverBgSizeForMobile: 240px 40px, 350px 162px;
@backcoverBackgroundSize: var(--thm-bc-bg-size);
@backcoverBackgroundRepeat: no-repeat, no-repeat;
@backcoverBgPosition: bottom 60px left 60px, right center;
@backcoverBgPositionForMobile: bottom 60px left 20px, calc(100% + 10px) center;
@backcoverBackgroundPosition: var(--thm-bc-bg-pos);

// 封面、封底素材资源
:root {
    --thm-c-logo: url("");
    --thm-c-bg: url("");
    --thm-c-bottom: url("");
    --thm-bc-map: url("");
}

@import "../base";

// 生成强调风格的有序列表样式
.genOrderList(block, rect);

// 生成指定风格的多级标签样式
.genBadgeStyle(std);

// 生成 GSA 样式
.genGSA_simple();
